<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<title>layout 后台大布局 - Layui</title>
	<link rel="stylesheet" th:href="@{/assets/layui/css/layui.css}"/>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">layui 后台布局</div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item"><a href="">控制台</a></li>
			<li class="layui-nav-item"><a href="">商品管理</a></li>
			<li class="layui-nav-item"><a href="">用户</a></li>
			<li class="layui-nav-item">
				<a href="javascript:;">其它系统</a>
				<dl class="layui-nav-child">
					<dd><a href="">邮件管理</a></dd>
					<dd><a href="">消息管理</a></dd>
					<dd><a href="">授权管理</a></dd>
				</dl>
			</li>
		</ul>
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item">
				<a href="javascript:;" >
					<img th:src="${#httpServletRequest.getContextPath()+session.ADMINUSET.imgurl}" class="layui-nav-img" th:text="${session.ADMINUSET.name}" />
				</a>
				<dl class="layui-nav-child">
					<dd><a href="javascript:;" id="userdata">基本资料</a></dd>
					<dd><a href="javascript:;" id="usersecurity">安全设置</a></dd>
				</dl>
			</li>
			<li class="layui-nav-item" id="exits">
				<a th:href="${#httpServletRequest.getContextPath()+'/admin/exit'}">退了</a>
			</li>
		</ul>
	</div>

	<div class="layui-side layui-bg-black">
		<div class="layui-side-scroll">
			<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
			<ul class="layui-nav layui-nav-tree"  lay-filter="test">
				<li class="layui-nav-item menulist"  th:each="userM:${session.userMenu}">
					<a class="" href="javascript:;"   th:attr="data-href=${userM.url},data-id=${'menu'+userM.id}" >
						<i class="layui-icon" th:utext="${userM.iocclass}"></i>&emsp;<span th:text="${userM.name}"></span>
					</a>
					<dl class="layui-nav-child" th:if="${userM.seed!=null}" th:each="seed:${userM.seed}">
						<dd>
							<a href="javascript:;" th:attr="data-href=${seed.url},data-id=${'menu'+seed.id}" >
								<i class="layui-icon"  th:utext="${seed.iocclass}"></i>&emsp;<span th:text="${seed.name}"></span>
							</a>
						</dd>
					</dl>
				</li>
			</ul>
		</div>
	</div>


	<div class="layui-body" id="body">

	</div>

	<div class="layui-footer">
		<!-- 底部固定区域 -->
		© layui.com - 底部固定区域
	</div>
</div>
<script th:src="@{/assets/layui/layui.js}"></script>
<script th:src="@{/assets/layui/privatefinal.js}"></script>
<script th:src="@{/assets/layui/privateutil.js}"></script>
<script th:inline="javascript">
    //JavaScript代码区域
	/*<![CDATA[*/
    layui.use(['element','layer','jquery','form'], function(){
         var   layer = parent.layer === undefined ? layui.layer : top.layer
        $ = layui.jquery;
        var url=/*[[${#httpServletRequest.getContextPath()}]]*/;
        $(".menulist").find("a").click(function(){

            var o = $(this).data("href");
			if( !o || ($.trim(o)).length==0){
			    return false;
			}
			var text = $(this).text();
            var id = $(this).data("id");


            openwindows(url+o,null,$)
		})

		$("#userdata").click(function(){
            openwindows(url+'/admin/adminuser/userDataPage',null,$)
		})
        $("#usersecurity").click(function(){
            openwindows(url+'/admin/adminuser/updatePwdPage',null,$)
        })
    });
    /*]]>*/
</script>
</body>
</html>